package com.banmao.algorithm.No1To100.No19;

public class Answer {

    public static void main(String[] args) {

        ListNode head = LinkedListUtil.generateByArray(new int[]{1, 2, 3, 4, 5});

        Solution1 solution = new Solution1();
        ListNode res = solution.removeNthFromEnd(head, 2);

        LinkedListUtil.printLinkedList(res);

    }

}
